package com.FengChaoSystem.dao;

import com.FengChaoSystem.pojo.Occupy;
import com.FengChaoSystem.pojo.Order;
import com.FengChaoSystem.pojo.PageNeed;
import com.FengChaoSystem.pojo.User;

import java.util.List;

public interface OrderDao {

    public List<Order> selectAllOrder(User user);
    public List<Order> selectAllUnGetOrder(User user);
    public List<Order>selectAllUnGetOrderByCondition(PageNeed pageNeed);
    public List<Order>selectAllOrderByCondition(PageNeed pageNeed);
    public Order selectGetWordAndReceiveAddress(Order target);
    public Order selectOrdersByOnlyId(Order target);

    public List<Order>selectAllSendingOrder(User target);
    public List<Order> selectAllUnSendOrder(User target);
    public List<Order>selectAllUnSendOrderByCondition(PageNeed pageNeed);
    public List<Order>selectAllSendingOrderByCondition(PageNeed pageNeed);

    public void updateStatus(Order order);

    public Occupy hasOrder(Occupy occupy);
    public Order select(Order target);
    public void updateGetTime(Order target);
    public void updatePutTime(Order target);

}
